import { createStore } from 'vuex'
import catasdf from 'vuex-persistedstate'
export default createStore({
  state: {
    list:[]
  },
  getters: {
  },
  mutations: {
    add(state,i){
      state.list.push(i)
    },
    ads(state,i){
      state.list=state.list.filter(item=>!i.includes(item))
    },
    del(state, i) {
      state.list.splice(i, 1)
     }
  },
  actions: {
  },
  modules: {
  },
  plugins:[catasdf()]
})
